﻿using SqlSugar;

namespace Zhaoxi.App.Common.Entity
{
    public class UnitInsertMethod
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        public string Name { get; set; }
        public DateTime Time { get; set; }
        [SugarColumn(IsNullable = true)]
        public string UserId { get; set; }

        public void Create()
        {
            Time = DateTime.Now;
            UserId = "1";
        }
        public void modify(string a)
        {
            Time = DateTime.Now;
            UserId = a;
        }
    }
}
